package com.chatdating.entity.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PostCreateDto {

    @NotBlank(message = "内容不能为空")
    private String content;

    @NotNull(message = "作者ID不能为空")
    private Integer authorId;

    @NotNull(message = "作者名不能为空")
    private String authorName;

    @NotNull(message = "作者头像")
    private String userHead;

    // 接收多个图片文件
    private String[] images;
}
